{include file="header"}
<link rel="stylesheet" href="__ROOT__/static/plugs/awesome/fonts.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">



<style>
    .weui-cells{
        margin-top:0px!important;
    }
</style>
{block name="style"}{/block}
<script>window.ROOT_URL = '__ROOT__';</script>
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
<div class="weui-btn_primary weui-header">

    <h1 class="weui-header-title">华烽科技项目管理系统</h1>

</div>
<div class="layui-carousel" id="test1" lay-filter="test1">
    <div carousel-item="">
        <div> <img src='/static/weui/images/1.jpg' width="100%" alt=""></div>
        <div> <img src='/static/weui/images/2.jpg'width="100%" alt=""></div>
        <div> <img src='/static/weui/images/3.jpg'width="100%" alt=""></div>
        <div> <img src='/static/weui/images/4.jpg' width="100%"alt=""></div>
        <!--<div> <img src='/static/weui/images/5.jpg'width="100%" alt=""></div>-->
        <div> <img src='/static/weui/images/6.jpg'width="100%" alt=""></div>
        <div> <img src='/static/weui/images/7.jpg'width="100%" alt=""></div>
        <div> <img src='/static/weui/images/8.jpg'width="100%" alt=""></div>

    </div>
</div>

<!--<div class="slide" id="slide2">
    <ul>
        <li>
            <a href="javascript:;">
                <img src='/static/weui/images/3.jpg' alt="">
            </a>

        </li>
        <li>
            <a href="javascript:;">
                <img src='/static/weui/images/2.jpg' alt="">
            </a>

        </li>
        <li>
            <a href="javascript:;">
                <img src='/static/weui/images/1.jpg' alt="">
            </a>

        </li>
    </ul>
    <div class="dot">
        <span></span>
        <span></span>
        <span></span>
    </div>
</div>-->
<!--<div class="slide slide-m" id="slide3">
    <ul>
        <li>
            <div  class='txt'>空旷冷落的古旧行宫，只有宫花寂寞地艳红</div></li>
        <li>
            <div  class='txt'>几个满头白发的宫女，闲坐无事谈论唐玄宗</div>
        </li>
        <li>
            <div  class='txt'>但见泪痕湿，不知心恨谁</div>
        </li>
    </ul>
</div>-->
<form data-login-form onsubmit="return false" method="post" class="layui-anim layui-anim-upbit" autocomplete="off">
<div class="weui-cells weui-cells_form">
    <div class="weui-cell">
        <div class="weui-cell__hd"><label class="weui-label">登入账号</label></div>
        <div class="weui-cell__bd">
            <input class="weui-input"  name="username" required placeholder="请输入登录账号" type="text">
        </div>
    </div>
    <div class="weui-cell">
        <div class="weui-cell__hd">
            <label class="weui-label">密码</label>
        </div>
        <div class="weui-cell__bd">
            <input class="weui-input" name="password" required  placeholder="请输入密码" type="password">
        </div>

    </div>

    </div>
<div class="weui-btn-area">
    <input type="hidden" name="skey" value="{$loginskey|default=''}">
    <button type="submit"  class="weui-btn weui-btn_primary" data-form-loaded="立即登入">立即登入</button>

</div>
</form>
<script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
<script src="__ROOT__/static/plugs/require/require.js"></script>
<script src="__ROOT__/static/admin.js"></script>
{include file="footer"}
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use(['carousel', 'form'], function(){
        var carousel = layui.carousel
            ,form = layui.form;

        //常规轮播
        carousel.render({
            elem: '#test1'
            ,width: '100%'
            ,arrow: 'always'
        });

        //改变下时间间隔、动画类型、高度
        carousel.render({
            elem: '#test2'
            ,interval: 1800
            ,anim: 'fade'
            ,height: '120px'
        });

        //设定各种参数
        var ins3 = carousel.render({
            elem: '#test3'
        });
        //图片轮播
        carousel.render({
            elem: '#test10'
            ,width: '778px'
            ,height: '440px'
            ,interval: 5000
        });

        //事件
        carousel.on('change(test4)', function(res){
            console.log(res)
        });

        var $ = layui.$, active = {
            set: function(othis){
                var THIS = 'layui-bg-normal'
                    ,key = othis.data('key')
                    ,options = {};

                othis.css('background-color', '#5FB878').siblings().removeAttr('style');
                options[key] = othis.data('value');
                ins3.reload(options);
            }
        };

        //监听开关
        form.on('switch(autoplay)', function(){
            ins3.reload({
                autoplay: this.checked
            });
        });

        $('.demoSet').on('keyup', function(){
            var value = this.value
                ,options = {};
            if(!/^\d+$/.test(value)) return;

            options[this.name] = value;
            ins3.reload(options);
        });

        //其它示例
        $('.demoTest .layui-btn').on('click', function(){
            var othis = $(this), type = othis.data('type');
            active[type] ? active[type].call(this, othis) : '';
        });
    });
</script>
